package per.hx.bs.entity.sys;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import per.hx.bs.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @author HuXing
 * @date 2018/3/30  16:15
 */
@TableName("sys_notify")
public class SysNotifyDO extends BaseEntity<SysNotifyDO> {

    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 类型
     */
    private String type;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 附件
     */
    private String files;
    /**
     * 状态
     */
    private String status;
    /**
     * 是否发送邮件
     */
    private String sendEmail;
    /**
     * 用户Id
     */
    @TableField(exist = false)
    private Long[] userIds;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFiles() {
        return files;
    }

    public void setFiles(String files) {
        this.files = files;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long[] getUserIds() {
        return userIds;
    }

    public void setUserIds(Long[] userIds) {
        this.userIds = userIds;
    }


    public String getSendEmail() {
        return sendEmail;
    }

    public void setSendEmail(String sendEmail) {
        this.sendEmail = sendEmail;
    }

    @Override
    public String toString() {
        return "SysNotifyDO{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", files='" + files + '\'' +
                ", status='" + status + '\'' +
                ", sendEmail='" + sendEmail + '\'' +
                ", userIds=" + Arrays.toString(userIds) +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
